package com.elink.enginerring.subject.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.elink.enginerring.common.BaseCo;
import com.elink.enginerring.news.entity.News;
import com.elink.enginerring.subject.entity.SubjectNews;

public interface SubjectNewsMapper {
    int insert(SubjectNews record);

    int insertSelective(SubjectNews record);

	List<News> selectList(@Param("catalogId")String catalogId, @Param("co")BaseCo co);

	int selectCount(@Param("catalogId")String catalogId, @Param("co")BaseCo co);
	
	List<News> selectListByCatalogId(@Param("catalogId")String catalogId,@Param("co")BaseCo co);

	int selectCountByCatalogId(@Param("catalogId")String catalogId,@Param("co")BaseCo co);
	
	void insertBatch(List<SubjectNews> fdc);
}